package chaozuo;

import bbb.*;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 18128
 * Date: 2023-09-25
 * Time: 21:48
 */
public class xinzeng implements ZG{
    public void work(Booklist bookl)
    {
        Scanner sss=new Scanner(System.in);
        System.out.println("输入要新增图书的书名");
        String name=sss.next();
        System.out.println("输入要新增图书的作者");
        String autor=sss.next();
        System.out.println("输入新增图书的价格");
        int price=sss.nextInt();
        System.out.println("输入新增图书的类型");
        String type=sss.next();
        book newshu=new book(name,autor,price,type);
        bookl.getBrr()[bookl.getNums()]=newshu;
        bookl.setNums(bookl.getNums()+1);

    }
}
